package com.idrive.activity;

import java.util.List;

import android.app.Activity;
import android.os.Bundle;
import android.widget.GridView;

import com.idrive.R;
import com.idrive.adapter.CallLogAdapter;
import com.idrive.database.dao.CallLogDao;
import com.idrive.database.dto.CallLog;

public class CallLogActivity extends Activity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_call_log);

		CallLogDao dao = new CallLogDao(this);

		final List<CallLog> list = dao.getCallLog();

		final GridView gridView = (GridView) findViewById(R.id.callLogGridView);
		gridView.setAdapter(new CallLogAdapter(this, list));

	}
}
